package org.tinygroup.sdpm.zhang.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.tinygroup.sdpm.zhang.business.inter.GoodsOrderManager;
import org.tinygroup.sdpm.zhang.dao.inter.pojo.Goodsorder;
import org.tinygroup.sdpm.zhang.service.inter.GoodsOrderServiceInter;

@Component
public class GoodsOrderServiceImpl implements GoodsOrderServiceInter{
    @Autowired
    private GoodsOrderManager goodsOrderManager;
    @Override
    public Goodsorder getGoodsOrderById(String pk) {
        return goodsOrderManager.getByKey(pk);
    }

    @Override
    public Goodsorder addGoodsOrder(Goodsorder goodsorder) {
        return goodsOrderManager.add(goodsorder);
    }
}
